package com.xs.designpattern;

/**
 * @author xs
 */
public enum StarType {
    /**
     * 恒星枚举
     */
    SUN("太阳"), RED_GIANT("红巨星"), WHITE_DWARF("白矮星"), SUPERNOVA("超新星"), DEAD("死星星");

    private final String title;

    StarType(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return title;
    }
}
